package com.mew.common.rest.events;

import com.mew.common.rest.MewResponse;
import io.netty.buffer.ByteBuf;
import lombok.*;


@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class DaysGetResponseMessage extends MewResponse<DaysGetResponseMessage> {

    private int totalTimes; //领取次数
    private long daysGold; //领取金币
    private int remainTime; //剩余时间[秒] 如果为0表示可以领取

    private long goldNumber;

    @Override
    public void write(ByteBuf b) {

        writeInt(b, this.totalTimes);
        writeLong(b, this.daysGold);
        writeInt(b, this.remainTime);
        writeLong(b, this.goldNumber);
    }

    @Override
    public DaysGetResponseMessage read(ByteBuf byteBuf) {
        return null;
    }

}
